package mvp.com.bbc;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Window;

import com.hjm.bottomtabbar.BottomTabBar;

import butterknife.BindView;
import butterknife.ButterKnife;
import mvp.com.bbc.ui.fragment.HomeFragment;
import mvp.com.bbc.ui.fragment.IMFragment;
import mvp.com.bbc.ui.fragment.MyPersonFragment;
import mvp.com.bbc.ui.fragment.ShopFragment;
import mvp.com.bbc.ui.fragment.TestFragmentReVh;

public class MainActivity extends AppCompatActivity {
    @BindView(R.id.bottomTabBar)
    BottomTabBar bottomTabBar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
        bottomTabBar.init(getSupportFragmentManager())
                .addTabItem("首页", R.drawable.home_on, HomeFragment.class)
                .addTabItem("商城", R.drawable.message_on, ShopFragment.class)
                .addTabItem("美聊", R.drawable.qian_on, TestFragmentReVh.class)
                .addTabItem("个人中心", R.drawable.personal_on, MyPersonFragment.class);
        bottomTabBar.setAlpha(1);
    }
}